package com.tcjk.utils;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;

public class Test {

	public static void main(String[] args) throws JSONException {
		Map map = new HashMap();
		map.put("result", 1);
       Gson gson = new Gson();
       String str = gson.toJson(map);
       System.out.println(str);
	}
}